Skip to content

feat(settings): a settings window, and GNOME screenshots through the picker - #23

Merged
Quost merged 2 commits into
mainfrom
feat/settings-window
Dec 2, 2026
Merged

Quost merged 2 commits into
mainfrom
feat/settings-window

Conversation

@Quost

@Quost Quost commented Nov 29, 2026

Copy link
Copy Markdown
Owner

Why

Two pieces of work were left uncommitted on main: a settings window (the last user-facing gap of the alpha, where every option meant editing config.json) and the fix for screenshots on GNOME, where the daemon's silent capture is refused and nothing was saved.

What changes

  • Settings window (crates/menew-ui/src/settings.rs), opened by menew settings, the palette and the tray: interface language (system or one of the five), start at login, welcome and update check, the clipboard options (paste mode, entries kept, auto delete, OCR, ignored apps) and the tray metrics. Saved as each row changes. The language, the clipboard options and the tray metrics are read at startup, and the window says so. libadwaita goes to v1_5 for adw::SpinRow/adw::PreferencesWindow.
  • GNOME screenshots (crates/menew/src/portal.rs): GNOME 45 to 47 only show the "screenshot" permission dialog to the app in front, so a background daemon gets Other and saves nothing. On GNOME every capture now goes through the system picker; on KDE the silent capture is still tried first with the picker as the fallback. Unit tests for the choice.
  • Docs and packaging follow: README, CHANGELOG (Unreleased), docs/parity.md, docs/updates-spec.md, docs/monitor-spec.md, the desktop action and the /linux page texts in 5 languages (the settings window is no longer announced as "coming next").

Tested

  • cargo check --workspace --all-targets, cargo clippy --workspace --all-targets -- -D warnings and cargo test --workspace: clean (Ubuntu 24.04 container, GTK 4.14 / Libadwaita 1.5, Rust 1.100.1). Clippy had two warnings in the new file, fixed.
  • Not run: the headless desktop tests (GNOME/KDE) and a visual check of the settings window. There is no display here, so the window was compiled, not looked at.

Notes

  • Version not bumped: the changes sit under Unreleased; cutting 0.1.0-alpha.4 is a separate release (version, metainfo, tag, signed update.json).
  • The PR carries two commits (the screenshot fix and the settings window) because both were pending together; they can be split if preferred.

@Quost
Quost enabled auto-merge (squash) December 1, 2026 18:12
@Quost
Quost force-pushed the feat/settings-window branch from e198bf2 to 1c37771 Compare December 2, 2026 11:48
Quost and others added 2 commits December 2, 2026 08:58
GNOME 45 to 47 answer "Other" to a silent capture from a background app: the
permission dialog is only shown to the app in front, so Menew saved nothing.
Every GNOME capture now goes through the picker, which needs no permission;
other desktops keep the silent capture and fall back to the picker.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
`menew settings`, the palette and the tray open a libadwaita preferences window
for the language (system or one of the five), start at login, the clipboard
options, the update check and the tray metrics, so nobody edits JSON by hand.
The README, parity, specs, desktop actions and the /linux page texts follow the
new window.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <[email protected]>
@Quost
Quost force-pushed the feat/settings-window branch from 1c37771 to 087bf81 Compare December 2, 2026 11:58
@Quost
Quost merged commit 47fcc18 into main Dec 2, 2026
4 checks passed
@Quost
Quost deleted the feat/settings-window branch December 2, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant